from sanic import response
from .method import Order
from . import bp_apiorderstatus
from db_connect import ConnMysqlSlave
from db_connect import ConnMysql
import aiomysql

@bp_apiorderstatus.route("/blog", methods=["GET"])
async def add_product_info(request):

    form_info = request.form

    order_id = form_info.get('order_id')
    status = form_info.get('status')

    result =await Order(order_id, status).result()
    return response.json(result)




